Outbox Property (Session Object) 

The Outbox property returns a Folder object representing the current user s default Outbox folder. Read-only.

Syntax

objSession.Outbox

Data Type

Object

Remarks

The property returns Nothing if the current user does not have or has not enabled the Outbox folder.

In addition to the general ability to navigate through the formal collection and object hierarchy, the OLE Messaging Library supports properties that let your application directly access the most common folder objects: 

    The IPM subtree

    Inbox

    Outbox

 

Example

' from the function Session_Outbox

Dim objFolder As Object

' ...

    Set objFolder = objSession.Outbox

    If objFolder Is Nothing Then

        MsgBox "Failed to open Outbox"

        Exit Function

    End If

    MsgBox "Folder name = " & objFolder.Name

    Set objMessages = objFolder.Messages

 

See Also

Folder Object

Inbox Property (Session Object)1BPW5IP